package com.example.securitydemo.service;

import com.example.securitydemo.entity.UserInfo;
import com.example.securitydemo.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserInfoService {
    @Autowired
    private UserInfoMapper mapper;

    public UserInfo getUserInfo(String username){
        return mapper.getUserInfoByUsername(username);
    }

}
